<?php
    $javascript->link(array('jquery', 'jquery.validate', 'comentarios/captcha'), false);
?>

<div class="comentarios form">
    <?php echo $form->create('Comentario');?>
    <fieldset>
        <legend><?php __('Add Comentario');?></legend>
        <?php
		echo $form->input('nome');
		echo $form->input('email');
		echo $form->input('site');
	?>
        <div class="input text required">
            <img id="captcha" src="<?php echo $html->url('/comentarios/captcha_image');?>" alt="" align="left" style="padding-right: 15px;" />
             <!--<a href="javascript:void(0);" onclick="javascript:document.images.captcha.src='<?php echo $html->url('/comentarios/captcha_image');?>?' + Math.round(Math.random(0)*1000)+1">Reload image</a>-->
            <label for="ComentarioValidaCaptcha">Digite as letras e n&uacute;meros da imagem</label>
            <input name="data[Comentario][captcha]" type="text" style="width: 400px;" maxlength="10" value="" id="ComentarioValidaCaptcha" />
        </div>
    </fieldset>
    <?php echo $form->end('Salvar');?>
</div>